package com.cq.hd.product.api;

import com.cq.hd.common.pagination.Page;
import com.cq.hd.common.response.Result;
import com.cq.hd.product.api.dto.ActiveCollectPageDto;
import com.cq.hd.product.api.dto.ActiveCollectUpdateDto;
import com.cq.hd.product.api.vo.ActiveCollectPageVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "hd-o2o-product-service", contextId = "active-collect-api")
public interface TbActiveCollectApi {

    // 活动收藏/取消收藏
    @PostMapping("/product/activeCollect/updateState")
    Result<Object> updateState(@RequestBody ActiveCollectUpdateDto activeCollectUpdateDto);

    // 活动收藏列表
    @GetMapping("/product/activeCollect/page")
    Result<Page<ActiveCollectPageVo>> page(@SpringQueryMap ActiveCollectPageDto activeCollectPageDto);
}
